<script src="/js/acroml/dist/umd/acroml.js"></script>
<script>
    console.log(AcroML);
    AcroML.Engine.onSwitchLanguage=function(){
        //window.location.reload();
        console.log(AcroML.Engine.instance.LCID);
        AcroML.htmlTranslator.translatePage(AcroML.Engine.instance.dd,AcroML.Engine.instance.LCID);
    }
    function start(){
        AcroML.buildHTMLSelector($('#languageSelector'));
        AcroML.Engine.onSwitchLanguage();
    }
    //jquery的$()函数不能加asycn函数
    document.onready=async function(){
        //dom构建后，如何同步获取构建dd，画面不闪烁?
        console.log('build dd...');
        await AcroML.Engine.init({
            engineClass:AcroML.BrowserEngine,
            ddFile:'/dd/Unicode.csv.txt'
        });
        start();
    }
</script>